<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('welcome');
//});

Auth::routes();

Route::group(['middleware' => 'auth'], function () {
    Route::get('/home', 'HomeController@index');
    Route::get('/', 'HomeController@index');

});
Route::get('/weiui', 'WeiController@index');
Route::any('/wechat/back', 'WechatController@back');
Route::any('/wechat/auth-callback', 'WechatController@authcallback');
Route::get('/get-link','WechatController@getLink');
Route::any('/wechat/callback/{app_id}', 'WechatController@callback');
Route::any('/add-user', 'WechatController@AddUser');
Route::get('/wechat/get-menu/{w_id}','WechatController@getMenu');
Route::post('/wechat/new-menu','WechatController@newMenu');
Route::post('/wechat/statistics','WechatController@getStatistics');
Route::post('/wechat/elements','WechatController@getElements');
Route::post('/wechat/update-user-remark','WechatController@updateUserRemark');
Route::post('/wechat/imgUpload','WechatController@imgUpload');
Route::post('/wechat/VoiceUpload','WechatController@VoiceUpload');
Route::post('/wechat/VideoUpload','WechatController@VideoUpload');
Route::post('/wechat/SourceUpload','WechatController@SourceUpload');
Route::get('/wechat/UserResult','WechatController@UserResult');
Route::post('/wechat/sendMass','WechatController@sendMass');
Route::post('/wechat/checkMass','WechatController@checkMass');

